package com.momoauth.api_client.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
@DS("momo_auth")
@TableName("momo_dist_type")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class MoMo_Dist_Type {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    @NotEmpty(message="字典编码不能为空！")
    private String code; //字典编码
    @NotEmpty(message="字典名称不能为空！")
    private String name; //字典名称
    private String description; //描述
    private Integer type; //类型
    private Integer status; //状态
    @TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NEVER)
    private String createTime; //创建时间
    @TableField(exist = false)
    private Integer currentPage; //页码
    @TableField(exist = false)
    private Long pageSize; //计数
}
